# {{ ansible_managed }}
#
{% if ansible_os_family == 'RedHat' %}
user              nginx;
{% elif ansible_os_family == 'Debian' %}
user              www-data;
{% endif %}

worker_processes  {{ ansible_processor_count }};
pid        /var/run/nginx.pid;

events {
    worker_connections  {{ nginx_max_clients }};
}

http {
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        include /etc/nginx/mime.types;
        default_type application/octet-stream;

{% for k,v in nginx_http_params.iteritems() %}
        {{ k }}  {{ v }};
{% endfor %}

        gzip on;
        gzip_disable "msie6";

        include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/sites-enabled/*;
}
